package com.example.miaoshademo;

/**
 * @author Shenluw
 * created：2019/7/17 21:15
 */
public class R {
	private int code;
	private String msg;
	private Object data;

	public R(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public R(int code, String msg, Object data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "R{" +
				"code=" + code +
				", msg='" + msg + '\'' +
				", data=" + data +
				'}';
	}
}
